Small updates to work with arduino ide 1.0.1 and 1.5.2 small code errors