Fixed #1126: Warning about struct/class thread_counters