Fixed build_all.sh script

Fixed build_all.sh script and added patch for avr-libc-1.7.1