Fixed compile erro on OSX by adding #ifdef statement to skill.c so it included malloc/malloc.h instead of malloc.h