Fix ping for OSX.