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

I needed to include stdlib.h to compile on Linux, specifically Ubuntu 14.04