Update ksort.h

From my personal communication, I got this suggestion:

 using inline incorrectly: see the C99 standard §6.7.4.  Please change to static inline (and report upstream). This also caused some clang compilation problem.