Check if the C++ compiler supports -fvisibility=hidden