Add getopt() function from

https://github.com/alex85k/wingetopt

see discusstion:

http://stackoverflow.com/questions/10404448/getopt-h-compiling-linux-c-code-in-windows