fix issues on Windows host and some problems on 24.1 emacs
changes set-up-environment-variables.el to use all defined variables
add potential overriding of haskell compile command with environment variable