MinGW Win32 compilation fixes
core/event: code cleaning