fix dynamiclib