See gist at https://gist.github.com/felipenoris/76b7c969b606ae669c91c27ddb6cbaec .
I'm using appveyor as build envorinment to distribute to windows desktop machines.
The resulting DLLs work fine on Windows Server as well as Windows 7 Desktops.
However, the DLLs can't be dlopened on Windows 10.
Actually, all DLLs produced at 'bin' folder can be opened on Windows 10, except libbson and libmongoc.
- links to