Cowboys improve defense with trade for former 2nd-round pick