Fix building LibVMI with xen-events on old Xen libraries and add static conversion matrix for flags