make mingw happy while linking with tapcfg
remove mingw warnings