Fix build errors with newer versions of `avr-libc`.

See also issue #955 on GitHub and the same issue on Google Projects:
    https://code.google.com/p/arduino/issues/detail?id=955