Fixed avr-gcc compatibility problems