libvirtd: apply upstream patches

libvirtd would fail to successfully run on Mac OS X. With these two
upstream changes that is resolved. It can be tested by running 'virsh
version'.

Closes #23141.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>