Fix compile error when not using libvirt.
Merge pull request #1014 from kacfengine/master

Fix compile error when not using libvirt.