Fix warning in windows build