Improve check for Windows platforms

Instead of checking for compiler, check for platform.
2 files changed