Fix linaro strict aliasing errors