update clib code for new header files