Fixed unix implementation for timers.