Fix build on Windows: We don't build terminfo on Windows
Add a missing $ to a dependency
Define utils/ghc-pkg_dist_PROG correctly for Windows
Build fix for dyn way on Windows; patch from nus
Small refactoring; patch from nus
Update submodules