Updated CMakeLists to properly include dependencies.