hivex: Add O_BINARY flag to open calls for platforms where this isn't the default (such as Win32)
commit: Set O_CLOEXEC or FD_CLOEXEC on the file descriptor.