Found the problem. In the .cpp and .h file included in the library, you need to change
#include "WProgram.h"
to ->
#include "Arduino.h"
This is if you're running 1.0.1. Not sure about other versions. This will also be true for any library written before this change in the Arduino software.