Improve handling of custom locations & library list.

In Makefile.PL, use assert_lib to figure out which libraries we can actually
link against.  Previously, naively attempting to link against libssl was
causing failures on Windows because the libraries are named differently on
that platform.