minor fixes (msvc warnings)