dispatch_get_current_queue is deprecated as of iOS6

Replace deprecated calls to get rid of xcode warnings.

isMainThread is good back to iOS2.