fix compiler compability issue
fix sorting
add Heap.head
Implement process affinity.
set Default max memblock size to 4M
Merge branch 'master' of https://github.com/clockfly/nativetask
move some function into heap.h