FreeBSD 10 compat fixes

See PRs on individual commit messages for all the gory details.

/cc @opscode/release-engineers @opscode/client-engineers