build: check for libintl, and use it

Look for libint/gettext and link to it; this properly detects whether
libint is part of libc.