close: use gl_REPLACE_FCLOSE only if defined