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