Fix DLL building for MSVC.