fix mac os changes in serialdump
initialize the input serial flags in serialdump

this removes the excess new lines from the output
close serialdump and show an error when the serial device got disconnected
updated binary version of serialdump-linux