Fix a bug with VTE and old GLib versions