Small changes in order to get the code running with an older version of Qt.