Implement initial changes for Qt5 compatibility

Compiles on both qt4.8 and qt5 although not all issues
have been fixed so far. Remaining issues:
* FlickGesture mechanism needs fixes
* QWebPage's lack of attributes() -method needs to be solved
* There is currently no method to add plugin paths directly

Open-webOS-DCO-1.0-Signed-off-by: Jukka Honkela <jukka.honkela@palm.com>

Change-Id: I3e9f22c42489e03ccc10232605f2a888cd940734
Correct dependency on libserviceinstaller for target devices

There is difference in the way of compiling serviceinstaller: When compiling it with cmake
it will result in a library called libserviceinstaller and if the plain Makefile is used
it will named libserviceinstall. OE uses the cmake approach and therefore we need to fix
this.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
Fix INCLUDEPATH to be correct for cross compilation

Commit 39fe3e6473f20387e2eee72195f5034e84ff7c94 added a link to the global include/lib
directory /usr/include / /usr/lib which is not allowed in cross compilation environments
like OE and will causes compilation problems (in OE the LUNA_STAGING variable is not set
and so the include path will expanded to just /usr/include or /usr/lib).

As the change was only intended for the desktop build environment it's reverted from
webappmanager.pro and added just for the desktop build configuration.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
Small fixes to build webappmanager with Qt5

Original author Teppo Pennanen <teppo.pennanen@palm.com>

Open-webOS-DCO-1.0-Signed-off-by: Jaakko Putaala <jaakko.putaala@palm.com>

Change-Id: I8573ecb71315e416f652af0df27862dd449892e5
Only set QT_QPA_PLATFORM if it is not already set

If you need to use a QPA library other than libqpalm, then set
QT_QPA_PLATFORM in the environment prior to launching LunaSysMgr and
WebAppMgr.

Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <eric.blade@palm.com>

Change-Id: Ia009eb4216d7232705ac4d397c55edc66ade8ce2
We need a privileged role to allow apps to access system services

When not using a privileged role for luna-service2 our applications can't access several
system applications.

Open-webOS-DCO-1.0-Signed-off-by: Simon Busch <morphis@gravedo.de>
Add support for 'tuna' build target

Open-webOS-DCO-1.0-Signed-off-by: Roger Stringer <roger.stringer@palm.com>

Change-Id: I157f701c472d55f62c12d92ab6f2ea79bcfa5a1a
Add lib rpath to STAGING_LIBDIR on device

Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <eric.blade@palm.com>

Change-Id: I40700356ab05f0dfaf591910e529f4aac1413f77