Make deprecation warnings actually DeprecationWarnings.