glib-2.0: fix qsort_with_data binding

Fixes bug 640786.