Replace malloc and friends.