Port CAF to FreeBSD 10.

It suffices to define a few includes to make CAF work with FreeBSD 10.