windows: uv_spawn() fixes

@bnoordhuis or @sblom, care to review?

This is necessary to make execSync work on windows.