reorganized linux implementation. No code change just moving functions around
reorganized linux implementation. No code change just moving functions around

facchinm/go-serial,bugst/go-serial,ricorx7/go-serial