SOC_U: Implemented some socket functions

This allows ftpony and ftbrony to work.
It's using Berkeley sockets directly since that's what the soc:U service exposes to applications.
I'd suggest dropping the EMU_PLATFORM thing, especially if it's not used in all places anyway. There's virtually no advantage in using it, and it's just one more oddness in our codebase.