Fix compilation after the qml engine changes

Fix compilation after the QML engine moved over to v4
as it's JS engine.

Change-Id: Ie37f56aa59279888a2e7fa5902093f41069677ee
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>