Fixed MSVC version detection code in CMake files