Fix some compilation problems on older gcc versions.