Adding Georges patch to the voxer branch with writev changes