fix varous build errors when compiling with QML
fix varous build errors when compiling with QML

examples/declarative is a sfw example
examples/declarativemusic and examples/declarativevideo require media

tmcguire/qt-mobility,kaltsi/qt-mobility,enthought/qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,tmcguire/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,KDE/android-qt-mobility,qtproject/qt-mobility,KDE/android-qt-mobility,KDE/android-qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,tmcguire/qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,KDE/android-qt-mobility