tool: add undocumented option --dump-module-paths for win32 #3208
This is needed so that in the CI we can get a list of all DLL
Something like this is needed to get the artifacts from the CI as discussed in #3103. I can't think of a better way to do it other than we add something to the tool and check after initialization, otherwise we're just guessing.
- Add an undocumented diagnostic option to show the full paths of all loaded modules regardless of whether or not libcurl initialization succeeds. This is needed so that in the CI we can get a list of all DLL dependencies after initialization (when they're most likely to have finished loading) and then package them as artifacts so that a functioning build can be downloaded. Also I imagine it may have some use as a diagnostic for help requests. Ref: #3103 Closes #xxxx