util: NetBSD doesn't have qsort_r either