Mark private methods of public classes as unexported
Given the methods are marked as private and thus not intended for external use, exporting the symbols adds some minor unneeded costs in binary size and linking time, which can be avoided.
Backport of !518 (merged), tested with KWrite & Kate starting unrebuild without issues.