getopt-gnu: avoid crash in glibc getopt