Adding Georges patch to the voxer branch with writev changes

@papertigers Can you confirm this is good to stay?