Hidden Capital Gains Taxes - And How to Avoid Them