fix compilation for WT Windows