Set opterr and optind to their normal default values.
- Remove the $NetBSD header as it wouldn't get updated and is wrong.
- This doesn't compile, but I'm including it to have a version history for changes required to make it work. - We need this for to have a getopt implementation on Windows. - It's necessary to change the implementation to switch from GPL to LGPL.
- This isn't our code so we don't care about these warnings.