Fixed windows port for MingW
fixing crash (issue #524)
Fixed other 64-bit time_t crash
Implemented ec_ctime from Gisle Vanem, removed double expand_token function
Merge pull request #517 from LocutusOfBorg/windows-port

Fixed windows port for MingW