native: cleanup

fix style
fix some syscall declarations
native: uart reconnect buffer replay

When using socket stdio, add option to replay what has been written to
stdout while not connected (`-b`).

The implementation is to simply use the existing log file (which is
implicetely created when the option is used), and read from it until
EOF upon reconnect.