Fix build errors and disable strict aliasing

Thanks linaro

Signed-off-by: Dragon <dragon7780@hotmail.nl>