Rather than changing the code, you may be able to compile it by including "WProgram.h" in the header and cpp files.