Added support for the Arduino Due

Modifications needed to support the Arduino Due (and most other Arduino platforms for that matter).