Fix compile when the parser is included in non GUI applications.
Fix compile when the parser is included in non GUI applications.

Change-Id: I63d910f0f63cd88d919b5487d5b48f6019eca9bd
Reviewed-on: http://codereview.qt-project.org/4895
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Kent Hansen <3ac6a472c49f67eda9a4f8f5b4658e16610d4c63@nokia.com>

mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,corngood/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,jfaust/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,crobertd/qtdeclarative,jfaust/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative