Fix forward declaration for Event