Fixing inconsistencies with rust exchange_malloc/free signature