Fix compilation on Qt 4.