Fixed linking with the polynomial solver.