Write a better test for HAVE_VISIBILITY_ATTRIBUTE to avoid false positives on AIX.