Check for __GNUC__ instead of HAVE_VISIBILITY

Change-Id: I335f4f54b5895566e3f66596b9a910a2daf77dfa
Transition to CMake

Change-Id: I2a2755768931385f7cf3e660471f4eba1f0200f7