some windows fixes around qtclient and testing