qtclient: fixes for Qt5 (ArchLinux qt4/qt5 makefile switch), code fixes