Fix: g_type_init is deprecated in new glib.