Add cpp link support.
Fix 32/64 bit support.