fixed compilation warnings on Windows