fix build steps for windows
update build scripts with previous modifications
add "set -e" before building

reason: stop the build at the first error, instead of continue
building and drown the error message in build logs
Merge pull request #1 from duthils/build-windows

fix build steps for windows
Merge pull request #2 from duthils/build-errors

Build errors