Reduce call chain of qsort

This will considerably improve the performance of qsort-heavily-used projects
like Android-Pinyin-IME, more discussion:
   https://groups.google.com/forum/#!topic/emscripten-discuss/Ah2CNfQ8ra4