Use RuntimeWarning instead of DeprecationWarning

This makes the warning more noticeable to people and will be less likely
to be ignored.