qmljs: fix compilation with Qt4 (attempt 2)

Change-Id: I4a324dc0c6558dc8494d576b75b81a55455f218a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>