Added missing dependencies in CMakeLists.txt to allow parallel builds with Clang.