When building on FreeBSD, nbtool_config.h is not provided, so all of
the various HAVE_* default to off except for HAVE_STRUCT_STAT_ST_FLAGS
which is enabled in both the Makefile and in makefs.h.
The setting in the Makefile is overriden by nbtool_config.h when
cross-building, but that is non-obvious. Instead, follow the example
from commit c49043eacb14c951b0675eb4d37b81d4b02b949f and flesh out the
rest of the relevant nbtool_config.h settings in makefs.h.