#1196: only set symbol visibility flags once