[PATCH] Fix compilation on systems that don't provide O_CLOEXEC