Fix compilation with CMake on Windows