util: NetBSD doesn't have qsort_r either
Merge pull request #1970 from ghedo/netbsd_qsort

util: NetBSD doesn't have qsort_r either