Fix build

I've just tweaked things until it builds on:

- my Arch desktop
- my OSX laptop
- a fresh Ubuntu 12.04 (LTS) container

There is some nonsense that means gettext has to be disabled on OSX for now.