Fix deprecated source code errors.