Libcork doesn't build on FreeBSD

Libcork fails to build on FreeBSD. There are some shell scripts and header files that do not check for BSD-specific locations of files or conditions.