rs: Fix build with ISO C++ 11 compilers

ISO C++ 11 no longer allows implicit narrowing during initialization

Change-Id: Ie359c075b6687962eeaa94d909b6cb92df65213f
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
rs: Fix aliasing violations

Fix aliasing violations so frameworks/rs can be compiled
without -fno-strict-aliasing

Change-Id: I39dee4712eca722c641741074fa1dbd49414b8cd
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
rs: Fix build with ISO C++ 11 compilers

From Amit Pundit & Bernhard Rosenkraenzer

Change-Id: I14911c66dd2a795de13470f1f90c3bdb143799a6