fixes for arduino 1.0.5