Added -DAVR to build.sh to compile AVR version

Change-Id: I665387650c9667dca6c4971e98f681b9bbfc2898