modified windows checks from MSVC to WIN32