Juanjo Comellas getopt

getopt library for cmd-line parsing. This really should be a external
dep, right now I include as is in my projects..