[libvirt] [PATCH glib] Fix check for libvirt optional functions