adjust for msvc compilation