Fix build.sh mode and line-endings

build.sh was missing the +x bit and bash didn't like the dos line-endings.