Change needed to build luacrypto with recent OpenSSL

Created a new version of pkey_generate() that uses OpenSSL's RSA_generate_key_ex() and DSA_generate_parameters_ex() instead of their deprecated counterpats. The original version of pkey_generate() is still the available by default, to use the new version you need to define DONT_USE_OPENSSL_DEPRECATED_FUNCTIONS.