QT version 5 fixes