Move Win32/MSVC check to external file