Workaround for homebrew gettext when building xz
The xz autogen.sh script requires the autopoint tool which is provided by the gettext homebrew package on macOS but it's not installed into
PATH by default. This MR adds a little workaround to look for the homebrew version of gettext and use its
autopoint if it exists.