fix some random level 4 msvc warnings (but will keep it level 3 for now)