Ditched argp for getopt

argp seems to be unavailable on FreeBSD, so we use getopt now.