Make halloc's _set_allocator semi-public and use it rather than setting
halloc_allocator directly.  Fixes issue #23.