Add haste-inst build flag when building stuff with haste-inst.
Add back stub version of System.Posix.Internals.
Add stubs for FD <-> Handle conversions. Fixes #63.