use private linkage where possible

Change-Id: Ia64fcacff77933a00df6eecd866f75466f4f99a3
Reviewed-by: Alan Alpert <aalpert@blackberry.com>