build fixes with msvc.