fix compilation against Qt 4