CMakeLists: link things properly