Fix Qt 4 build