Fix dependencies in CMakeLists