fix CMake scripts