Replace the primitive QtCore library detection with something more powerful.

No more hard-coded version numbers all over the place, and far less
false-positives.