closed #2322: [Win32] Linking error when using multiply inheritance.

The PR also make an improvement by using Multi-processor Compilation.