Revert "#1196: only set symbol visibility flags once"

This reverts commit 4387bd8cb8736521cafa9b8ab187e12ec10fcb13.
Merge branch 'develop' of github.com:casadi/casadi into develop