get rid of getopt(3), heil suckopt()
get rid of getopt(3), heil suckopt()

getopt(3) is not portable and behaves differently depending on whether
GNU extensions are enabled. the commit adds 50LOC getopt(3) alternative.

resilar/crchack,deffi420/crchack,resilar/crchack