[libvirt] PATCH Move misc functions out of hash.c/internal.h into libvirt.c