Re-added support for qt5.