rename OsEventBuffer in EventBuffer
define g_os_event_buffer in OS instead of EventBuffer
move EventBuffer to engine