Solaris does not have qsort_r
Merge pull request #2034 from jacquesg/solaris-qsort

Solaris doesn't have qsort_r either