Set close-on-exec when opening files

Merged Alan Coopersmith requested to merge alanc/libfontenc:cloexec into master

Merge request reports