Fix links for static libraries.