Changed WProgram.h to Arduino.h for it to compile now