Fixes to allow for cross compiling of Serial commands