New build script, compile in stages