glib2: don't call deprecated g_type_init()

It is deprecated since GLib 2.35.1.