metadb: sort includes, add sys/uio.h