windows: translate system errors in uv_spawn

We weren't translating errors for CreateProcessW.

I also reorganized the code a little to make it easier 
to read.

This is half a fix for node's unit test 
test-child-process-cwd.js on win.
The rest will go into node lib.

It also fixes test-child-process-exec-error