Use win32 API for I/O on windows

To make sure we adhere to Windows File Locks, we should use the win32 API for all of the I/O from opening, reading and checking modify times on windows logs