Fix ctkConsoleTest for Qt5.