fixed an msvc 6 compilation problem