CMake adjusted to work under Windows