Add macro for marking methods as deprecated.