Use gmtime_r to avoid threading conflicts
Merge pull request #5 from Metaswitch/gmtime_r

[Reviewer: Andy] Use gmtime_r to avoid threading conflicts