Fix g_type_init deprecations