Replace some _MSC_VER with _WIN32.
This allows to use some code for mingw which was previously only
used for MSVC.