Add a prebuild stage that will build the dependencies first

Change-Id: Icbf653b1bfb463f955df93ba4baf339e1a070e78
Merge "Add a prebuild stage that will build the dependencies first"