Move the Linux serial code to common
Merge pull request #416 from nomis52/master

Move the Linux serial code to common