fixed some compilation and qsort bugs in usort bundle