Fixed a build failure with Qt 4.6 and older