fix name collision with gmtime_r on windows

mingw define its own gmtime_r function, tested with mingw 4.7.2
Merge pull request #34 from mhaoa/master

fix name collision with gmtime_r on windows