Make default symbol visibility to hidden with explicit public visibility specified.
Add missing static scope to a few more places.