Fixed compilation error with Qt <4.8