added conditional g_type_init call for older versions of glib