fixed CMakeLists errors for windows