WINDOWS: Fix perfctr crash on Windows XP and Windows Server 2003

fixes #4462