Fixed version check for Qt5 build