Implement timegm for platforms not including it