I fabricated a gantry crane from 4x4's and a steel cross tube. In this photo, my son and I just finished using it to install the engine. I also used it to hoist the cab. I made a simple frame out of 2x4 that went through both cab door openings. I used ratchet straps over the hoist beam to lift the cab (one on each side).

The chain loop in the middle of the crane beam is where I hooked the chain hoist for lifting the engine. The crane was plenty stable and strong. The braces are electrical conduit.