Fix up some error messages
Include stdlib.h for malloc