Optimizations and fixes for gcc build. TailSend now deprecated.

Use Send instead of TailSend.