Fix build with Qt 4