use qsort_r() when it is available - relates to #622

fix and simplify discovery of memrchr

(0) -1000 -300 -100 -30 -10 -2 +2 +10 +30 tip

mercurial