If there are new dependencies, build them as well, and at first.