Add this to your config settings just below your _CONFIG2H line;
__CONFIG _CONFIG2L, _PWRT_ON_2L & _BOREN_BOHW_2L & _BORV_3_2L

This should give it more time for the oscillator to start up.