Added ifdefs to NetworkAdapter to cleanup Release app