Remove defunct serial dependency
Improve static/shared symbol export logic