build with gcc 4.7

Change-Id: I43df23de101b3fa61d04170f1ae14db2e4e44caa