Add declaration of PTR_ERR_OR_ZERO for kernels prior to 3.12

Signed-off-by: Guenter Roeck <linux@roeck-us.net>