Fixing detection of date and git revision on windows.
Merge pull request #516 from perroe/windows_compile_fix

Fixing detection of date and git revision on windows.