small build/configure tweaks
using a lock-based queue, hopefully solving both races and task leaks.
qsort performance is about the same.
using malloc/free for tasks (hopefully getting the lifecycles right)
Merge github.com:yosefk/checkedthreads