- eliminate compiler warning when compiling with Visual Studio.
- Make sure that _ftime() from msvcrt.dll is used, not ftime() from mingw (which might use 64-bit time_t)
<sys/stat.h> inclusion is only needed when compiling for Win32, don't bother for other platforms.