Fix compilation errors in mono/utils/os-event-win32.c with Mingw/GCC (#3818)