modified CMake files to make it compatible with windows