common: use nl_langinfo constants conditionally

The _NL_ADDRESS_LANG_TERM and _NL_ADDRESS_COUNTRY_AB3 aren't portable.

https://bugzilla.gnome.org/show_bug.cgi?id=726707