lapi: Add configure check and fallback struct iovec declaration

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>