Refactor out projectbuild creation.

Build all dependencies in automated mode.