Add NMEA0183 support for HDG
Create 3rd buffer for stdout.
Fix off-by-one errors.
Use the C optimizer.