use private linkage where possible

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