simplify build code for tapcfg and libconfig