Fix build with Qt 5.2 or older.