Fixing the writev function for the curl plugin so that it actually works now