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 #2 from duthils/build-errors

Build errors