CHM and related fixes

https://issues.dlang.org/show_bug.cgi?id=12717