changed the CMakeLists to be compiled correctly