This is necessary to be able to use arbitrary zig allocators as the cmark allocator. I'm not sure if this patch is worth trying to upstream.