Add glib version check around g_type_init()