How can I avoid transaction malleability consequences?
This is the new issue, the one that's causing all the trouble. You basically have two choices:


Don't spend any of your own outputs until you're quite confident they're fully confirmed. For example, you could wait for three confirmations.
Be prepared to deal with this problem by monitoring your outstanding transaction chains and re-issuing any orphaned transactions with new input transaction IDs.