Solve four separate memory leaks related to rsdHalInit

Three of the items are local to RsdCpuReferenceImpl and now freed in
destructor after all threads are stopped.
Last one is the RsdHal item itself where the pointer for some reason
was explicitly cleared but not freed. There is no reference counting
but it should be ok to free in Shutdown.

Change-Id: I7832e412d12f4bd7cc728481ae0c782fa57b57e4
Fix memory leak due to smart pointer misuse.

bug 11965932

Change-Id: I982b974b3554b0f4dc7a558107703ff605f580e6

Conflicts:
	cpp/BaseObj.cpp
	cpp/Element.cpp
	cpp/rsCppStructs.h
C++11: turn off error warning for only the error we want to turn off

previously was setting -Wno-error to get arround C++11 narrowing violations

Change-Id: I620b1d524bce4642f3f0b4af446e00394177e42b
clang: Silent warnings

Change-Id: Ic132d9bc983f1c1d9ba5d84e5f8425dc3ba002c4