Lightweight reachability class for Mac and iOS