Added required dependencies to CMakeLists.txt.