pdist runs with mac osx