Add better support for global build object.