patch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE

Problem:    MS-Windows: unnessarily loading libraries when registering OLE.
Solution:   Skip loading libraries when invoked with "-register".
diff --git a/src/main.c b/src/main.c
index 30014d4..686fb14 100644
--- a/src/main.c
+++ b/src/main.c
@@ -161,6 +161,20 @@
 	    break;
 	}
 #endif
+#ifdef MSWIN
+    // Need to find "-register" before loading any libraries.
+    for (i = 1; i < argc; ++i)
+	if (STRICMP(argv[i] + 1, "register") == 0
+				   && (argv[i][0] == '-' || argv[i][0] == '/'))
+	{
+	    found_register_arg = TRUE;
+	    break;
+	}
+#endif
+
+    /*
+     * Various initialisations shared with tests.
+     */
     common_init(&params);
 
 #ifdef VIMDLL