Generate event-config.h using the correct macros. The previous patch didn't change the sed script in Makefile.am, since that couldn't be done automatically.