bionic: Fix aliasing violations

This makes bionic compile with compilers enforcing
strict adherence to aliasing rules (e.g. gcc 4.6+
with -Wstrict-aliasing=2 -Werror=strict-aliasing).

Change-Id: Ia43773da621d7d8ca33d411376aa7e20490c5734
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>