use private linkage where possible

Change-Id: I14e289bd44ab31fff081d5d63974e524232313a8
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>