use exec rather than spawn when using windows

fixes #1290

this gives us the least terrible of both worlds, using spawn unless
windows, where we use exec. That way everyone can build
Merge pull request #1372 from patrickkettner/exec-tweak

use exec rather than spawn when using windows