Fix CMakeLists for compatibility