fixed a bunch of errors in CMakeLists