simplify build code for tapcfg and libconfig
fix identation
Merge pull request #54 from duthils/build_lib_dependencies

simplify build code for tapcfg and libconfig