C extend lib