only set -fvisibility=hidden in c++11 mode