Arduino 1.0 compatibility fix