Fix the windows version.

It was missing an implementation of the now() function.

I took this implementation from the oswrap library (with permission).