use better code optimisation (-O2)

Change-Id: Iec8c7b1bfaaeed3972dfdee1ef2db386c432ecd9