Linux support

This adds support for linux (tested with NixOS / GHC 7.8.3 and OS X Yosemite / GHC 7.8.2). Also added a `ptywrap` executable to demonstrate/test the use of a library. This includes https://github.com/merijn/posix-pty/pull/3