Merging latest changes from CocoaAsyncSocket project
Fixing issue #36 : dispatch_get_current_queue usage at risk