backport to qt 4.7.4, win xp, msvc 2008