Fixed compile issue in msvc