Modify CMakeLists.txt for successfully building on Windows