Revert O_CLOEXEC change to fix builds (#4570)

4 files changed