Only set MAX_VERSION for GLib

-Removing check for at least GLib 2.26