On FreeBSD getopt_long() is included with getopt.h
check libgen.h providing basename() on FreeBSD