Fix implicit declaration of exit() by adding <stdlib.h>