Backport QTRY_VERIFY and QTRY_COMPARE from Qt 5.
This way they can be used without a running X server.