Look through this post (" target="_blank), it has directions on what issues you will face in a v8 swap. It's from a kit that used to be made by some fine canadians.
As far as an inline 6, the engine is longer than a v8, therefore harder to fit in the mazda, not impossible, just harder.
v8 fits nice