Make deprecations compiler warnings
Merge pull request #2288 from ericmj/compile-deprecations

Make deprecations compiler warnings