vl.c: reduce exit on error code duplication

use exit_if_error() helper instead of a bunch of
    if (local_err) {
        error_report(foo);
        error_free(local_err);
        exit(1);
    }
code blocks

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
glib: add compatibility interface for g_get_monotonic_time()

This patch fixes compilation errors when building against glib <2.28.0
due to the missing g_get_monotonic_time() function.

The compilation error in tests/libqos/virtio.c was introduced in commit
70556264a89a268efba1d7e8e341adcdd7881eb4 ("libqos: use microseconds
instead of iterations for virtio timeout").

Add a simple g_get_monotonic_time() implementation to compat-glib.h
based on code from vhost-user-test.c.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
v2: fix ibuild break beacuse of missing G_TIME_SPAN_SECOND in header