Add includes needed by AVR-gcc, fix compiler warning