Fixed issues with Qt Windows