compat.h:  define pr_warn and pr_warn_ratelimited macros if not already defined

pr_warn and pr_warn_ratelimited not added until kernel 2.6.35