Fix extraction of libvirt, remove resolv warning