Define target dependencies manually.

Building with XCode automatically resolves target dependencies, this
meant that when building with 'xcodebuild' the build would fail.