Switch to getopt.h