If river/stream fishing:
Step 1: Cross the river.
Step 2: Turn around so the wind is blowing over your non-casting shoulder.
Step 3: Cast.
If pond/lake fishing:
Step 1: Rotate float tube 180 degrees.
Step 2: Cast.
If one of the above techniques doesn't work, then I just lower the front of my casting stroke and punch it through the wind, and keep the backcast up high and out of the way. Honestly, after 17 years or so of fly fishing, I don't even think about it any more. I can't remember the last time I hooked myself though so I must be doing something right.