serial: implementation still __linux__ specific (even though not much remains to do to be platform agnostic at this stage)