Get job control working.

Also some stuff on trying to get window resizing to work. This is so
far less successful.
Conditional compilation for Linux/OSX.
Only use resize handling on Linux - seems to work there?
Try in old place.
Move setWindowSize around
Remove superfluous 'setWindowSize'.
Add some logging for SIGWINCH
Define OS-specific variables.
Merge branch 'issues/termsize' of github.com:nc6/tabula into issues/termsize
Set the controlling terminal for the new process.
Update version number.

Also worked out how to grab the version from the Cabal file rather
thank specifying it twice. See http://stackoverflow.com/questions/2892586/how-can-my-haskell-program-or-library-find-its-version-number
for details.