Fixed compilation on older Qt versions.