fixes undeclared getopt and optopt on Ubuntu 13.10
Merge pull request #6 from scratcher28/patch-1

fixes undeclared getopt and optopt on Ubuntu 13.10