add compatibility with older libvirt (1.1)