Fix C++ library linking.