Mechanical systems subjected to generalized non-holonomic constraints