more close-on-exec fixes, mostly using new "e" flag to fopen