Linking C and C++ libraries statically.