FreeBSD 10 compat

Various fixes for building Chef on FreeBSD 10.

/cc @opscode/release-engineers @opscode/client-engineers