fix compilation with new avr-gcc and avr-libc