fix chromium 28 build with gcc

Without these patches, building fails at least with gcc 4.8