use private linkage where possible

Change-Id: I36fbe9f77092a5a3cb7148e26e9315d9e14384ec
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>