fixed building with msvc

this little changes fix the compiling using msvc.