Added config detection for malloc/malloc.h.
Fixed typo.