Fix CMake dependencies