Use simple define instead of version to check for Qt5.

Version check doesn't play nicely with moc.