Added g_info guard for glib >= 2.40