[Libvir] [PATCH] Xen capabilities - nul-terminate the token and a couple of cleanups