Restrict visibility flags to gcc.