fix build broken on older gcc