Add support for external resource allocator