Using PicAntIDE 5.0.6
When creating a project with the wizard based on PIC16F876, the wrong headerfile is included. System.h checks all defines, but I guess that the define set for de default processor when creating a new project, is not undefined on selecting another processor. (or something like that)
It is not a difficult bug to work around, just include the header file for the processor your using, instead of including system.h