Use the POLARSSL_LIBRARY variable to set the link library. This fixes a possible linkage issue when multiple versions of the library are around.