Add checks for libdl and libcrypto
Add -ldl if needed
update Source0 link