Fix loading of libffi on OpenBSD

OpenBSD doesn't use symlinks for shared libraries.
It has a 'smart' linker which loads the latest library if given "libfoo.so" form so use that.

Also add header directory under /usr/local to compiler flags so ffi.h is found.