Check if the compiler is MSVC before testing for MSVC version and using MSVC specific "#pragma warning"