Add tty_bsd.go for Mac OS X/FreeBSD

With this patch, gof can be built in Mac OS X/FreeBSD.