fix C++ linkage with MS-COFF32
Merge pull request #3875 from rainers/coff32_cpp

fix C++ linkage with MS-COFF32