Ouch. Only suggestion I can offer is taking the door off the hinges first, then the hinges off the cab pillar. You should be able to get a ring spanner in there to the door side of the hinges. With a bit of luck it shouldn't have messed up the cab pillar too badly - you might get away with being able to use the hinges as lever points and twist it back towards the cabin with a pry bar.