Offload Krasic for 15-20 million as a start to raise that money. Then, at the end of the season, Gala will pay us 8-10 million for Melo (I don't remember how much the fee was, but it was something in that region). We would still be some money short, but I'm sure that the club could raise the rest of the funds required.
We could even sell Quag on top of this, but I don't want that to happen. Hope he stays.