Some more attempts to fix mktime crashes