Fixes to allow correct output display under QT4.x