Removed unused socket parameter in create_key() and fixed linker error with libcrypto