Malloc implementation using Rust allocator
This is useful when you want to provide C library with malloc callbacks in place of standard C allocator