Include <stdlib.h> for malloc, free (Ubuntu-14.04)