[timers] don't compile ticks.c when not needed