Add support for getopt/getopt_long
Merge pull request #848 from manuels/incoming

Add getopt and getopt_long (libc) support