Update CMakeLists.txt to be Win-compatible