Add callback signatures for custom memory allocators.