ueventd: Fix aliasing violations

Fix aliasing violation, allowing us to enable the
-fstrict-aliasing optimization

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>