configure: add test for qsort_r