Changed build process according to http://arduino.cc/en/Hacking/BuildProcess