[libvirt PATCH v2 05/13] util: add detection of openpty function