I have not checked the datasheets, but int he past I've been caught with PIC changes like that and it can often be a pin-setup issue. Check the pins used and if any other peripherals use them (ADC? comparators?), and things like CONFIG setups that might assign those pins for special uses.