Ok, I solved it I think, the pkg on the URL above is now nearly a MB larger.
Probably while debugging the BOM problem, I did what people should never do. I ran ......
Perl code (docs/xml/multi_makeskel.pl), which probably overwrote all my XMLs with empty skeletons.
So I was searching for more code bugs, but there were none, it was an input problem.
481271 buildlcllog.txt
882363 buildlog.txt
2435414 fcl.chm
471755 fclres.chm
59591 fclres.xct
225957 fcl.xct
89749 fpdoc.chm
1915568 lazutils.chm
262398 lazutils.xct
25741317 lcl.chm
1445477 lcl.xct
426000 prog.chm
4186 readmechm.txt
951263 ref.chm
6115 ref.kwd
4019651 rtl.chm
406272 rtl.xct
6983 toc.chm
445766 user.chm