Fix compilation error in libvirt resource