alloca.h breaks the build on openbsd/freebsd

with these few changes I was able to build the static lib successfully on FreeBSD using clang and OpenBSD using gcc-4.9