Added stdlib.h, changed calloc, replaced stricmp