Fix compilation issues with avr-gcc 4.7.2.
Ignore build directories in git.