Squelch implementing deprecated method warning.

The implementation of `+mainContext` and `+hasMainContext` were both triggering warnings for me as I have `-Wdeprecated-implementations` turned on. This patch will make clang ignore these two specific methods but leave the warning on for everything else.