Fixed compiler issue in msvc.