fix ping compile issues