Linaro 4.8 fixes

Compiler fixes for Linaro 4.8, 4.9+

Signed-off-by: Jean Francis Dominique S. Mabalot <jfdsmabalot@redhat.com>