Build fix for Windows
Merge pull request #1432 from sukhodolin/Fixes

Build fix for Windows
Allow more variables in the sysconfdir path template.
Documentation for --sysconfdir.
Don't pass --sysconfdir to setup scripts compiled against Cabal < 1.17.

Fixes #1433.