Use GNU gettext from homebrew on Mac if available

These changes address the issue mentioned in #40 and #25.

I've only tested this on Mac OS X with homebrew and
am curious whether these changes work fine for macports
and Linux, et al.