Initial port to FreeBSD