spawn fixes for Windows