fixed some linter + msvc warnings