I'm still struggling with that script, but here is what I think is a first piece of fixage:
Index: build.sh =================================================================== --- build.sh (revision 56) +++ build.sh (working copy) @@ -12,7 +12,7 @@ STRIP=i386-elf-strip \ NM=i386-elf-nm \ HOSTCC=gcc \ - -j + -j \ " fi if [ "$OS" == "Linux" ]; then