Move the Linux serial code to common