Fixed build failure.

See QTBUG-42363.  Applied patch from linked ticket.

Change-Id: I72959aca5273dbe3e864f51671b827119a6ca13d