Custom allocator support