Accommodate MSVC's idiotic macros
Attempt to detect MSVC's version from env vars
Windows-related fixes