move IO_Socket typedef outside of socket
fix friend decl, cleanup connector