qtclient: backported some compiler warning fixes