How to use SYSTEMConfigPerformance on a MPLAB X project
Looks like you need PIC32 Peripheral Library


  Starting with XC32 V1.40, PIC32MX peripheral support libraries are no
  longer installed as part of the compiler’s installation. These
  libraries are now installed as a second setup, after the installation
  of XC32 compiler.