fix termio_darwin.go bug: os.Error undefined in go 1.1

hi, shavac:
thans for your goterm, and i find some bugs in your goterm ,please check it !