Fix broken CMakeLists.txt and make the lib compile again.