Allow user to patch in custom sendmsg and recv implementations.

Default versions just calling the system sendmsg and recv functions
are supplied, leaving the library behaviorally identical by default.
Merge pull request #41 from StefanKarpinski/sk/io_hooks

Allow user to patch in custom sendmsg and recv implementations.