O_CLOEXEC is not defined everywhere