Fix aliasing violations

Change-Id: I49035dbf5d95afb90345daa97dd21048ee458ba3
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>