What were you using to program the flash on the PIC? MPLAB (the standard package) protects certain configuration words; if you zero them, you'll have a heckuva time programming the thing. Flash, has in addition to clock source, but also Device ID, etc.