Implement changes to build luna-sysmgr with Qt5

Version specific code is wrapped in #if-statements so that this
should compile with both Qt4.8 and Qt5.

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

Change-Id: Ic63edbfa9c653d24c0f66e930ba6c9461a3bfba7