Fix build with 3.x gcc versions.