Fix to build with Qt 4.6
Add a check for the minimum required Qt version