iOS 6+/OSX 10.8+ compatibility tweaks

* Check for OS_OBJECT_USE_OBJC when calling dispatch_release
* Added subscript operators for NSUserDefaults (e.g.: `defaults[@"x"] = @"y"`)
* Removed ensure_block_runs_on_main, as dispatch_get_current_queue() is now deprecated