agent: Replacing Linux defined TCP/UDP structures with BSD structures.

Additionally unneded defines have been removed in some of source files.

NOTE: "Removed" means commented out, the code should be cleaned up.