For this we have created a wiki entry to cover all the steps of replacing the default XC8 toolchain with a newer version. Using a new version of XC8 with Flowcode