getopt: fix compilation on darwin