Code:
DEFINE CONFIG_WORD_$3F31 
DEFINE INT_OSC 8
Are you putting those in there for some other purpose?

They have no effect on your PIC.
Including setting the proper configs and OSC.
<br>