Fixed warnings on Windows