Merge pull request #2354 from ben-clayton/limit-visibility

Limit visibility of symbols for internal libraries