storage: only call g_type_init() on old glib versions.