build.bash: Improved patching. Now does really exit if a patch failes. Removed unneeded checks.
Fixed patch 22 to apply on new smack trunk/head