add freebsd

add freebsd platform. It is just a copy of darwin.
tested on FreeBSD-8