Fix up quantize.h
Added more checks to std_deprecated and added a new patch.