Make getopt usage OS X compatible
36b881e
OS X does not use GNU getopt but rather BSD getopt, which is less friendly. Update getopt usage and argument parsing to be portable.