CMake: Enable C++ mode only for MSVC