Fix dymanic library generation (define export symbol).