Use stdlib.h instead of non-standard malloc.h.