Remove C++ required casts from malloc.