Fix compilation errors caused by use of old style C cast in VALGRIND_MAKE_MEM_DEFINED macro.