Fix qsort crash on 64-bit machines
Merge pull request #13 from YuvalAdler/master

Fix qsort crash on 64-bit machines