Minor changes to get SerialInput to compile on Linux