better strptime() emulation on Windows. Closes #1469