Fixed errors associated with getopt_long