Fix timers on Mac