One more try MinGW

Since neither qsort_r nor qsort_s are exposed on MinGW, we'll
just fall back on an internal insertion sort implementation.