Fix g_type_init deprecation