fix Issue 10508 - qsort_r is not present on older Linux systems

- requires GLIBC_2.8 which is old (5 years)
  but apparently still used