Set data bits on Windows.
Support 6-bit data on Unix.
Include <stdio.h> on Windows for sprintf, used in sp_open.