cygwin also doesn't have qsort_r
Merge pull request #2315 from jacquesg/qsort-cygwin

cygwin also doesn't have qsort_r