Support for custom allocators.