Fix CMake build on Windows