ISSUE-5174: Fixes static function calls for functions which are not decl...

...ared as static.