cygwin also doesn't have qsort_r