Added a GNOME specific autogen.sh

It is from the nautilus project, and does the same thing as the old
one, but in a more sane way.
Cherry picked GTK-Doc related commits from swe-glib branch
Removed gettext.h from the sources. GLib's i18n functions are used instead