adding c library support