cmake: enable the visibility flag also for clang and intel compilers, needed if you use the rtt/typekit/Types.hpp explicit instantiation header

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>