Enabele gcc 4.7 and O3

Change-Id: I3777a61f6d84113215576c5be0f39869cdda2db5