Fixing detection of date and git revision on windows.

Windows compile fix.