fixes for arduino 1.5.7 #2