Fix CMake build for Windows