add missing getopt.h header since i insist on using C99