iOS 6.0 Compatibility

Fixing iOS 6.0 errors and warnings that appear when compiling source for iOS 6.

Outstanding is the deprecation of dispatch_get_current_queue.