[libvirt] [PATCH] tests: Avoid double linking some libraries