The build failed on FreeBSD as there is no alloca.h. This patch is lifted from the autoconf documentation.