Implement writev API for GLIB IOStore

So that IOD can run on top of GLIB IOStore backends.

This patch is written by John.