Use gnulib 'close' module, for compatibility with newest Gnulib.