Moved UDP/IP support into a separate library
Fixed build errors