examples: enable linking both static and shared