Improve compatibility with -fvisibility=hidden.

Refs #5246
Avoid unnecessary PLT indirection for internal symbols.

Refs #5246