Add support for building with CMake on Windows.