What version of MPLAB are you using?

I think 8.15 is the latest that works.