Fix build for older frameworks.