If you do roll your own function, make sure that the vector returned is in or on the Minkowski sum (and don't just use a unit vector along some direction for example) or GJKDistance may early-exit with an inaccurate result.