Add FreeBSD support

Add FreeBSD support