Update optind correctly in getopt_long().