Change unix time conversion to use timelocal instead of mktime

We noticed that in the normal usage of the module, our times were reported
incorrectly. It traced back to using timelocal or timegm. timelocal works
as we expect in more cases. There is now a define available if you need
it to use timegm (see README.md)