Added build.sh to compile all files
Fixed compile errors