Add an Ivar to the IO signature and implement for Unix, Lwt

Signed-off-by: David Scott <dave.scott@citrix.com>