Fix to support different implementation for mktime()