WIP: Add malloc hooks