experimental: Add limited FreeBSD support

Tested on FreeBSD 10.0-RELEASE on amd64, clang 3.3 and 3.4.