Add machinery to build createrepo also on OS X.