fix compiliation on 3.5.x