fix: Check for getopt_long and correct define flag.