fix a bunch of 7.1 and also 8.0 API deprecation warnings.