[C++]: some CMake changes for Windows.