Fix build with Qt 5