Fixed Ubuntu / Qt 4.x compatibility