Fix some semantic usability issues with DynamicLibrary.