Added compatibility pre compiler check for __attribute__ ((NSObject))