Fix Linaro compilation & Enable O3 Optimizations

Change-Id: I5907ae0a511bff7b68c233566f70533d36931872
Signed-off-by: Alberto97 <albertop2197@gmail.com>