Revert CMakeLists.txt to a working state