Add Arduino 1.0 Compatibility

Added the fix that lemio gave in #151, it works, but there is one minor caveat I mention in the issue.