Prepare for Qt5 support.