Include <stdlib.h> for alloca.