Fix build on platforms without getopt_long()

Thanks, Travis-CI!