Those are the errors I was asking about. If you can just setup PBP to work from within MPLAB you really will save yourself a TON of time & headaches.

Show me the errors you get (when PBP is setup to compile in MPLAB), and I'll do my best
to help you get that working.