CMake modified for windows