P16F877.INC is a header file used by the MPASMWIN assembler. If you use
the PM assembler you shouldn't see this error.

If you're using MPASM, then make sure you have all of the MPASM device
header files or install MPLAB.