with gcc, mark all ELF symbols with visibility=hidden by default and mark symbols which should be exported as visibility=default