Get rid of deprecation and feature warnings.