CrossPlatSerial library (c) Stephen Roe <Ste.Roe@gmail.com>
little improvements by Pavel Ostapenko <bobrof@gmail.com>, 2012