improved sophistication of version check for Qt