fixes for arduino 1.5.7