Moved more functionality from build to buildutils.