Fix build

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