Support FreeBSD

This pull request adds support for FreeBSD 10.