Fixes for API changes in versions of gio2 gem built on gobject-introspection