wrap definition of free_langs() with HAVE_ATEXIT

...to avoid an unused function warning; see mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=984081.