Remove check for -fvisibility=hidden.

The GenerateExportHeader module has the add_compiler_flags() macro which
handles this for us.