Build with GCC 4.8

Plus some optimizations

Change-Id: I1501b77fce473d572dbc0f355337d84b34077621
Signed-off-by: kecinzer <kecinzer@gmail.com>