Fixing test apps to be compatible with Qt 5.2