windows: use a heap to hold timers on windows, #1460

a new pr on v1.x, #1475 
style: use 2 spaces for indenting