Small refactoring

pipeLoop now returns the final dflags, rather than having
runPipeline' extract it from the end state.
Inline get_output_fn

It's now only used once
Small refactoring: Don't pass a redundant output_spec around
Fix some m4/shell syntax in aclocal.m4, spotted by Jan Stolarek

[ ] is m4 syntax, so we need to use 'test foo' rather than '[ foo ]'.
Small refactoring: Don't pass redundant stop_phase to runPipeline
Small refactoring: Move the end-of-pipeline move into pipeLoop
Fix sys/cpuset.h on FreeBSD 9.1; patch from kazu-yamamoto; fixes #7708
Make the #includes a little more correct in OSThreads.c
Fix memory leak in CoreWriter (Trac #7702)
Update to binary 0.7.0.0
Merge branch 'master' of darcs.haskell.org:/home/darcs/ghc
Comment the fix to Trac #7702
Change how the build system handles packages

This makes the build system a little simpler, and in particular
will make it easier to handle the changes needed for cross-compilation.
Remove some unused variables
Rename $(Windows) to $(Windows_Host)
Fix when terminfo is built; fixes #7700

We now use the 'host' to determine whether stage0 builds terminfo,
and 'target' to determine whether stage1 does.

We don't build it if the platform is either Windows or ios.
Fix haddocking after the build system changes
Make ghc.mk a little prettier
Remove some more unused build system variables
LATEX_DOCS is no longer used