cmnGetChar: removed static char array and re-interpret cast to store OS specific internal data.  Now uses a pointer to struct