Fix compile error on Mac < QT 5