add back jemalloc and begin porting to it

This time, there is no attempt to replace the C allocator.