Fix warnings for gcc-4.9

Change-Id: I07eb9f9d24e9524fbe28ffd563f5e9d079da49df
Makefile: build with -O3

Change-Id: Iab477ec2ee32350815c22c3dbc77d353694a9084