Use dispatch_get_specific to workaround the deprecation of dispatch_get_current_queue

Addresses #164