Either of those two setups will work, but unlike pippin I'd favour the second one in which the gantry beam is bolted to the same plate as the bearing blocks. In the first you have an extra joint to complicate things.

Totally agree on the joining of the gantry beams though, they should be one solid unit, preferably in an L configuration.