Fix time.mktime() overflow on OS X.