Fixed up the library to compile and work on stock Arduino IDE 1.5.2