added proper OPENSSL_XXX flags, also fixed -L/opt/csw/lib for OpenSSL on Solaris