Various improvements to the autobuild system.