including stdlib.h to declare malloc (FedoraCore3, gcc 3.4.2)