MOSYNC-2871: Support for calling MAMain in dynamic lib