iOS7 compatible using dispatch groups

Merging changes made to make Async work on iOS7 and OS X 10.9