Fix compilation on win