Dan Quinn agrees to three-year contract to become Cowboys' DC