CMake compilation and MSVC updates