Some tap interface changes and integration into main.cpp for *nix systems.