getopt: Replaces with Windows compatible (#1).
Taken from https://github.com/alex85k/wingetopt/.