Added missing #include <stdlib.h>