Add Mac OS X support, based in large part on the OS X support in Mozilla's version of jemalloc.
Make it possible for each thread to manage which arena it is associated with. Implement the 'tests' and 'check' build targets.