move -fvisibility=hidden into global CFLAGS