Simplify date/time conversion on Win32

Remove strptime, use SQL_TIMESTAMP_STRUCT and mktime/_mkgmtime similar
to *nix.