text/charset.c: Use #ifdef for HAVE_* macro.