Don't call g_type_init for glib versions >= 2.35

It's been deprecated for versions >= 2.35