another bunch of patches for libvt :)