Add AC_TYPE_MOD_T to configure checks.
Check the correct struct kevent field (flags) when looking for EV_ERROR.