Add "static" to internal code

It is a good manner that we don't export internal symbols. They may
cause name conflict.