Windows build scripts

Also change image_viewer to use a temporary file for numpy data.