[runtime] Fix the windows build.
[runtime] Fix a warning.