to use your h145 handbrake you'll need to make a bracket that offsets the mounting position on the 165, if you can get both together and look at the back of the diffs where the handbrake connects to you'll see it easy, or cutoff and weld the h145 mount onto the 165 housing .... think that makes sense ??
as for tailshaft, you'll need a shorter one as the nose on the 165 is longer than the 145. i've still got that 165 yoke if you want it ??

see in the pic (h165 diff) the part thats mounted to the diff centre on the left side ... that needs to be moved more to the centre to suit the 145 handbrake set up. aLso i'm not sure on the wagons how the rear shocks mount ?? i'd assume it's the same as the sedan, so you'll also need to cut the spring mount plate off the 145 and have it welded to the 165, you need to cut the 165 one off as well so you just weld the 145 one back in its place.
see in the pic how the shock mounts to the bottom plate, this is in a coupe or ute, the shock runs up at much more of an angle, where as the sedan and wagon?? the shock bolts to the diff mount on top of the leaves and runs more verticle .....