event: try to fix events compilation with older cython