Hack together some support for recursive builds.