Fixed warnings on Windows.