Fix compile bug for systems that have nl_langinfo but CODESET undefined