copy c library src to the R package