Fix build on Qt 4