Haven't done it myself, and don't know anyone who has, but, my guess is it's going to be more work that you want to get into - let's assume, to simplify the discussion that it the M16 will bolt up to the transmission (which I doubt it will) so the fabwork is limited to engine mounts, and plumbing - the challenge is going to be in the electronics - you're going to need the ECU, the entire wiring harness from the vehicle the M16 came out of, along with whatever other computers the vehicle had.
For example, if the M16 is coming from an NGV with the four mode 4WD, the ECU is going to be looking for inputs from the transmission/transfer case controller (or the transmission/transfer case itself if the controller is integrated into the ECU.
Easy way out will be to get another G16 from a Baleno or similar - or - maybe rebuild the one you have now
