Use stdlib.h instead of malloc.h