add shared lib in R