Workaround com call not supported by mcs
Fix few '$(OS)' != 'Windows_NT' cases