Added include statements for stdlib.h