cleanup shared lib