Place these defines in the top section of your code;

DEFINE CCP1_REG GPIO
DEFINE CCP1_BIT 2

Should compile & work fine now.