Based on a submission by Rui Reis <rui@rui.cx>. ok espie@
our gettext. libintl is still linked in statically, though. Also some related clean-up.