Redirect open, write, close on windows ...

to use _open, _write, _close
Merge branch 'master' of github.com:halide/Halide