fixed msvc warnings in runtime