Fix android build since commit 696148e298 "Fix Event implementation" by @ShadowNinja. Fixes #3444. Thanks @kwolekr for pointing out the fix.
696148e298