It might be the standard used by the XC8 compiler that is getting in the way.As of V2 the more recent C99 standard is supported by XC8 and MPLAB-X defaults to it.Go to the project properties and select the C90 standard, then give it a try with the original MCC ocde.