Log Message: use stdlib.h instead of malloc.h. Addresses PR29206 by John Baker which prevented compilation on MacOS X 10.2.8.