Build functions and scripts for apexq buildbot