don't use g_type_init on glib >= 2.36 as it's deprecated