add patches for arduino 1.0.x ide to fully support seeeduino mega board