gio2: support GLib <= 2.36.0