i did some looking around and it appears that libssl.so.4 is actually named libssl.so.0.9.7# where the #=a letter. on mine its libssl.so.0.9.7f but might be different on yours.
just make a symlink from libssl.so.4 libssl.so.0.9.7#
ln -s /lib/libssl.so.0.9.7# /lib/libssl.so.4
you will probably need to do this for libcrypto.so.0.9.7#
ln -s /lib/libcrypto.so.0.9.7# /lib/libcrypto.so.4
remember to find which version of libssl.so.0.9.7# you have so you can appropriately substitute the correct letter for the # sign.
hope this helps