Fixed warnings/errors on Windows.