Fixed compilation issue with Qt <= 5.1