Make possible to compile with GCC 5.0.0

Signed-off-by: Petr kecinzer Řezníček <kecinzer@gmail.com>
build optimisations for 4.8 and higher use cc_optimize for size