Global homoclinic bifurcation for damped systems