support --long options with getopt_long()