[Build][Win] Generate cmd's to avoid problems with slashes
[Build][Win] Add patch to fix build (qtbug-32773)