cunit: use stdlib.h, not malloc.h
malloc.h is nonstandard, and some platforms complain about it. Reported in #3154.