Build and use dynamic libraries