fix compile problems with msvc6