Port libcork to FreeBSD

This patch should work for any 4.3 Net2 code base or newer, but we
are only testing on FreeBSD.