ported to new avrlibc