Change unit-tests to compile standalone

lunaservice.h must be included as <luna-service2/lunaservice.h>

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@palm.com>

Change-Id: I4cf35ddcc0a0c25a740c481da5e5194c899220fb
Fix to build when WEBOS_TARGET_MACHINE_IMPL is "hardware"

[OWEBOS-3155] luna-service2 fails to build when
              WEBOS_TARGET_MACHINE_IMPL is "hardware"

Open-webOS-DCO-1.0-Signed-off-by: Herb Kuta <herb.kuta@palm.com>
Change-Id: I98771c26d5823e1d92bff8063e8b930eb4b034ee
libluna-service2: link explicitly with librt

* transport_shm is using shm_open and when building with eglibc-2.17 it fails
| CMakeFiles/luna-service2.dir/transport_shm.c.o: In function `_LSTransportShmInitOnce':
| src/libluna-service2/transport_shm.c:101: undefined reference to `shm_open'
| src/libluna-service2/transport_shm.c:110: undefined reference to `shm_open'
| collect2: error: ld returned 1 exit status

Open-webOS-DCO-1.0-Signed-off-by: Martin Jansa <martin.jansa@palm.com>
Change-Id: I0b34c7d4f576b162bde661483904672924fb4ed2