various functions should have internal linkage
Merge pull request #2069 from cremno/static

various functions should have internal linkage