Suppress some deprecation warnings