fix ctime_r problem on Solaris (I hope)