Another round of optimisations to speedup the pch generation

the time went from ~20s to ~15.5s on the benchmark machine
(SLC6 corei7 sata non SDD HD).
The time needed for parsing the headers, therefore clang, is
~9s. This was a factor of 2x in the code which is completely
under control.