try passing in LIBS to get configure to find openssl