Added strlib.h to provide rand()