Conditionally compile os-specific bits of termios under Linux and OSX

Closes #2
Merge pull request #10 from japaric/macos-cfg

Conditionally compile os-specific bits of termios under Linux and OSX