Use termios via CGO only on Linux

Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>