Added support for FreeBSD (copy pty_linux.go)

This adds support for FreeBSD