HOMOCLINIC ORBITS IN PERTURBED GENERALIZED HAMILTONIAN SYSTEMS