Fix compilation on AVR (still bug introduced with ARM support), fixes #1