Qt 4.7 compilation fix