fix cylinder example compilation on older gcc

as mentioned on the previous PR