Fix git installation on OSX

- Don't install homebrew until after we've installed XCode
- Don't install gettext from homebrew (compile from source)

Please see the individual commit messages for more explanation