Update CMake for Windows portability