Set close-on-exec when opening files

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

Merge request reports