Use O_NOINHERIT for O_CLOEXEC on Windows