Ensures that dependency to tp project is established prior to build

When new projects are created it is essential that the dependency to
the target platform project is established before the initial resource
refresh that triggers a build happens. Otherwise, the build will
run without a target platform present.

Closes #484