Support build with Qt5.