mate-autogen.sh: run glib-gettexize if using GLib gettext

Based on gnome-common commit: d04839754bbbb6ffed9c4641fed801b586944820
mate-autogen: Check for appdata-xml.m4 with APPDATA_XML

Based on gnome-common commit: 2a770a34293432872a8c7edac584a72e943f06d2
mate-autogen.sh: correct IFS value

Due to a likely copy-paste mistake, the default value of IFS was being
set to 9 spaces instead of a tab and a space.

Based on gnome-common commit: fb0e5a9dbed732dd01d245f141ff2beb35689971
mate-autogen: Fix check if stdin is a tty

Use the simpler gnome-common check from commit: d98710d08e643fe2e2ba8d56540c350062cf0ecc
mate-autogen: make program_VERSION a local variable

Otherwise we may end up overriding what was manually set in the
environment.

Taken from gnome-common commit: f5bd3785edfbebef04089fc52f804249d88b89de
code-coverage: Support lcov 1.11