Linux support

Added Linux support to console input and output streams, improved class
hierarchy for input streams