Fix calling convention for libmng functions in file-mng plug-in. (cherry picked from commit d2de5a0c)