aajm OS X support

This will compile on OS X only if gettext headers are installed.