Fix C/C++ linking issue