fix C++ linkage with MS-COFF32

Also allows running the test suite.

Run tests with appropriate sc.ini (I'll make a pull for the one in the ini folder):
```
make quick CC="%VCInstallDir%\bin\cl.exe" MODEL=32mscoff
```