improvement to version checking
fix Qt4.x incompatibility