improved build of c code