Refining the shared lib stage.