Backport PR #2831: avoid string version comparisons in external.qt

We have learned from pyzmq that one should *always* parse version strings
before comparing them.