support -fvisibility=hidden in core library - refs #1826