Fix build with Qt4.