Fix and improve BuildLinux.sh

This is how I modified BuildLinux.sh to suit myself. It stops at errors, is clearer to read and builds more things.