Fix compile error when not using libvirt.