refining debugging a little bit, also setting up the serial port in raw mode.

Note, I don't think we are restoring the initial tty attributes on exit, although
there is a little infrastructure already for that, it isn't called afaik.

Signed-off-by: Russell Senior <russell@personaltelco.net>