Added another library path - needed for some libraries when using Arduino 1.5.5
Read build.core variable from boards.txt

Needed for Teensy1 and Teensy2
Read build.extra_flags from boards.txt
Read build.arch from boards.txt and define it as shown here: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification#recipes-to-compile-source-code
Read build.usb_flags properly
Define usb build flag

Needed in order to build for Teensy
Indent…
Do not hardcode architecture
Can now upload to Arduino Leonardo

Only tested on Mac OS X
Merge pull request #5 from Lauszus/master

Added another library path - needed for some libraries when using Arduino 1.5.5