Mac OS X does provide localtime_r and gmtime_r

Change-Id: I1142463972df76aac9e491abbfd08a67cf4db1f1