Suppressed deprecated implementation warnings.

Depending on your compiler flags, these deprecated method implementations may cause a warning/error. While you can disable this on a per project or per file basis, using `pragma` is a more universal solution.