[Perl] tidy "warning: duplicate 'extern' declaration specifier" when building generated code under clang