Make deprecations compiler warnings