Stubbing out code for static and dynamic libraries.