Use GLIB_CHECK_VERSION to detect that g_type_init is deprecated