[libvirt] [PATCH] Add helpers for dealing with system errors