fix warnings in msvc 10.