build tweaks for MSVC