(Mingw) Some Mingw fixes - implement osd_ticks for Win32 using
QueryPerformanceCounter