Fixed compilation issue in Qt5