Support for Haskell

* Added resource.h constants.
* Moved the child into its own process group.
* Add the LANG environment variable.