After the struggle to get the studs out of the housing, I also exchanged them for new ones made of corrosion resistant steel with appropriate strength and then installed the gearbox.
These photos also show how the transmission oil is distributed. The tube in the oil pump leads it behind the two bearings at the rear wall of the engine housing.