Solve the issue with static/shared library