[qt5] Initial batch of changes required for Qt5 port