Fixed a compilation error on Mac OS using Qt 5.