Include stdlib.h instead of deprecated malloc.h