First stubs to implement matching logic settings through setters.

Inspired by other APIs found in libarchive (especially formattings).
Split the matching logic between gtar's and mtree's (fnmatch(3)).

Hook fnmatch(3) to cmake/autotools.
More commits for gtar/mtree callbacks and fnmatch(3) hooks to the
build framework.