Add derivative support to K64F and updates for MTS_GAMBIT

Commit 14b6329 was reverted with merge 5e9f9c0 since the patch was implemented differently rather than accepted and my master was out of sync with your master