Compile with Qt4

(QSharedPointer::reset is only in Qt5)