Solved the problem about compile error on 1.5.x version of Arduino
Sketch