Terminal detection would error on non-posix operating systems
Various C programs require that an executing process find the stack size in D2, as well as the already handled 4(SP).  This is provided in at least 1.2 -> 3.1 (confirmed by myself).  Program in this case was 'main' from Pools of Radiance.
Merge pull request #8 from rmtew/bugfixes

Terminal detection would error on non-posix operating systems