[libvirt] [PATCH] Fix cast errors with clang