Replace deprecated header include

Include stdlib.h instead of the non-standard malloc.h